package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum  ExceptionEnum {
    PRICE_CAN_NOT_BE_NULL(400,"价格不能为空"),
    CATEGORY_NOT_FOUND(204,"对应分类不存在"),
    BRAND_NOT_FOUND(204,"对应品牌不存在"),
    DATA_TRANSFER_ERROR(500,"BeanHelper数据转换异常"),
    DATA_SAVE_ERROR(500,"数据库服务保存失败"),
    DATA_SERVER_DEADE(500,"数据服务意外终止，连接失败"),
    DATA_MODIFY_ERROR(500,"数据修改失败"),
    DATA_DELETE_ERROR(500,"数据删除失败"),
    REQUEST_PARAM_ERROR(400,"请求参数不合规"),
    UPDATE_OPERATION_FAIL(500,"上传操作获取文件签名失败"),
    DATA_NOT_FOUND(204,"数据未找到"),
    DIRECTORY_WRITER_ERROR(500,"服务端创建目录失败"),
    FILE_WRITER_ERROR(500,"服务端生成静态页失败"),
    SEND_MESSAGE_ERROR(500,"短信发送失败"),
    MQ_CONN_ERROR(500,"MQ链接失败，消息发送失败"),
    REDIS_CONN_ERROR(500,"redis链接失败，临时状态码存储失败"),
    VERIFY_CODE_VALIDATE_FAIL(500,"验证码，校验失败"),
    INVALID_NAME_PASS(400,"用户名或密码验证失败"),
    STOCK_NOT_ENOUGH(500,"库存不足"),
    REMOTE_SERVER_UNABLE(500,"远程服务不可用")

    ;

    private Integer status;
    private String message;

    ExceptionEnum(Integer status,String message){
        this.status = status;
        this.message = message;
    }
}
